/*
 * @Description:
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2021-10-11 10:57:03
 * @LastEditTime: 2021-10-26 11:05:35
 * @FilePath: \cscec-pms-admin\src\api\projectDynamicInformation\index.js
 */
import request from '@/utils/request2'
import { projectApiUrl } from '@/api/config'
const api = {
  query: projectApiUrl + '/project/dynamic/query',
  detail: projectApiUrl + '/project/dynamic/detail',
  planLabel: projectApiUrl + '/plan-label',
  status: projectApiUrl + '/project/dynamic/status',
  edit: projectApiUrl + '/project/dynamic/edit',
  resource: projectApiUrl + '/project/dynamic/resource'
}
export default {
  /**
   * @description: 获取项目动态信息
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  query: data => {
    return request({
      url: api.query,
      method: 'post',
      data
    })
  },
  /**
   * @description: 获取项目动态详情
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  detail: data => {
    return request({
      url: api.detail,
      method: 'post',
      data
    })
  },
  /**
   * @description: 获取下拉列表
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  planLabel: data => {
    return request({
      url: api.planLabel,
      method: 'get',
      params: data
    })
  },
  /**
   * @description: 获取项目状态
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  status: data => {
    return request({
      url: api.status,
      method: 'post',
      data
    })
  },
  /**
   * @description: 编辑
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  edit: data => {
    return request({
      url: api.edit,
      method: 'post',
      data
    })
  },
  /**
   * @description: 获取资源配置
   * @param {Object} data 接口参数
   * @return {Promise} 接口Promise
   */
  resource: data => {
    return request({
      url: api.resource,
      method: 'post',
      data
    })
  }
}